public class Test {

    public static void main(String[] args) {

        MyTerr myTerr = new MyTerr();
        MyTerr.TreeNode p = myTerr.creatTree();
        myTerr.qianTree(p);
        System.out.println();
        myTerr.zhongTree(p);
        System.out.println();
        myTerr.houTree(p);
        System.out.println();
        System.out.println(myTerr.size(p));
        System.out.println(myTerr.getLeafNodeCount(p));

    }
}
